/**
 * Created by Administrator on 2015/2/3.
 */

var weixin = require('../routes/weixin');
var utils = require('../routes/utils');
var Fiber = require('fibers');

var getTokenTest = function(){
    Fiber(function () {
        var result = utils.syncHttpGet(weixin.getTokenURL());
        console.log("sync result:" + result);
    }).run();
}

var csl_userOpenID = "oYXO-uNdsoDzbY0d3baoGb_bSGBA";

var getUserNameTest = function(){
    Fiber(function () {
        var result = weixin.getUserName(csl_userOpenID);
        console.log("getUserNameTest result:" + result);
    }).run();
}

getUserNameTest();
